#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<assert.h>
void* my_memcpy(void* dest, const void* sur, size_t num)
{
	void* ret = dest;
	assert(dest && sur);
	while(num--)
	{
		*(char*)dest = *(char*)sur;
		//ָ
		dest = (char*)dest + 1;
		sur = (char*)sur + 1;
	}
	return ret;
}
int main(e
{
	char arr1[] = "hello bit!";
	char arr2[20] = { 0 };
	my_memcpy(arr2, arr1, 7);
	printf("%s\n", arr2);
	return 0;
}

